<div class="easyui-panel" title="" style="width:436px">
    <div style="padding:10px 60px 10px 60px">

        <table cellpadding="5">
            <tr>
                <td>热门词汇:</td>
                <td><input id="keyword" class="easyui-textbox" type="text"
                           name="keyword" data-options="required:true"
                           value=""/></td>
            </tr>

        </table>

        <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="submit_keyword()">提交</a></td>


    </div>
</div>
<script>
    function submit_keyword(){
        var keyword = $("#keyword").val();
        if(keyword==null || keyword == ""){
            alert("请填热门词汇！");
        }else{
            $.ajax({
                url:'<{:U('Keyword/keywordAdd')}>',
                    type: 'POST',
                    data: {
                        keyword:keyword
            },
            timeout: 3000,
                    success: function (data) {
                alert(data);
                keywordKeywordRefresh();
                $('#keyword_keywordlist_add_dialog').dialog('close');
            },
            async: false
        });

    }
    }
</script>